package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @TableName tb_shop
 */
@TableName(value = "tb_shop")
@Data
public class TbShop implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer shopId;

    /**
     * 商品编号
     */
    private String shopCode;

    /**
     * 商品名称
     */
    @NotEmpty(message = "商品名称不能为空")
    private String shopName;

    /**
     * 商品品牌
     */
    @NotNull(message = "商品品牌不能为空")
    private Integer brandId;

    /**
     * 商品介绍
     */
    @NotEmpty(message = "商品介绍不能为空")
    private String remark;

    /**
     * 商品价格
     */
    @NotNull(message = "商品价格不能为空")
    private BigDecimal shopPrice;

    /**
     * 商品标签
     */
    private String shopTag;

    /**
     * 运费险  0：无 1：有
     */
    @NotNull(message = "运费险不能为空")
    private Integer insurance;

    /**
     * 店家担保  0：无 1：有
     */
    @NotNull(message = "店家担保不能为空")
    private Integer guarantee;

    //销售数量
    private Integer saleNum;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}